/*
 * XML Type:  BodyRq
 * Namespace: http://grupobbva.com.pe/HarecService/
 * Java type: pe.com.grupobbva.harecservice.BodyRq
 *
 * Automatically generated - do not modify.
 */
package pe.com.grupobbva.harecservice.impl;
/**
 * An XML BodyRq(@http://grupobbva.com.pe/HarecService/).
 *
 * This is a complex type.
 */
public class BodyRqImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements pe.com.grupobbva.harecservice.BodyRq
{
    
    public BodyRqImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CODIGOCENTRAL$0 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "codigoCentral");
    private static final javax.xml.namespace.QName TIPODOI$2 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "tipoDOI");
    private static final javax.xml.namespace.QName NRODOI$4 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "nroDOI");
    private static final javax.xml.namespace.QName ESTADO$6 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "estado");
    
    
    /**
     * Gets the "codigoCentral" element
     */
    public java.lang.String getCodigoCentral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CODIGOCENTRAL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "codigoCentral" element
     */
    public pe.com.grupobbva.harecservice.CodigoCentral xgetCodigoCentral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.CodigoCentral target = null;
            target = (pe.com.grupobbva.harecservice.CodigoCentral)get_store().find_element_user(CODIGOCENTRAL$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "codigoCentral" element
     */
    public boolean isSetCodigoCentral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CODIGOCENTRAL$0) != 0;
        }
    }
    
    /**
     * Sets the "codigoCentral" element
     */
    public void setCodigoCentral(java.lang.String codigoCentral)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CODIGOCENTRAL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CODIGOCENTRAL$0);
            }
            target.setStringValue(codigoCentral);
        }
    }
    
    /**
     * Sets (as xml) the "codigoCentral" element
     */
    public void xsetCodigoCentral(pe.com.grupobbva.harecservice.CodigoCentral codigoCentral)
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.CodigoCentral target = null;
            target = (pe.com.grupobbva.harecservice.CodigoCentral)get_store().find_element_user(CODIGOCENTRAL$0, 0);
            if (target == null)
            {
                target = (pe.com.grupobbva.harecservice.CodigoCentral)get_store().add_element_user(CODIGOCENTRAL$0);
            }
            target.set(codigoCentral);
        }
    }
    
    /**
     * Unsets the "codigoCentral" element
     */
    public void unsetCodigoCentral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CODIGOCENTRAL$0, 0);
        }
    }
    
    /**
     * Gets the "tipoDOI" element
     */
    public java.lang.String getTipoDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIPODOI$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "tipoDOI" element
     */
    public pe.com.grupobbva.harecservice.TipoDocumento xgetTipoDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.TipoDocumento target = null;
            target = (pe.com.grupobbva.harecservice.TipoDocumento)get_store().find_element_user(TIPODOI$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "tipoDOI" element
     */
    public boolean isSetTipoDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TIPODOI$2) != 0;
        }
    }
    
    /**
     * Sets the "tipoDOI" element
     */
    public void setTipoDOI(java.lang.String tipoDOI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIPODOI$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TIPODOI$2);
            }
            target.setStringValue(tipoDOI);
        }
    }
    
    /**
     * Sets (as xml) the "tipoDOI" element
     */
    public void xsetTipoDOI(pe.com.grupobbva.harecservice.TipoDocumento tipoDOI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.TipoDocumento target = null;
            target = (pe.com.grupobbva.harecservice.TipoDocumento)get_store().find_element_user(TIPODOI$2, 0);
            if (target == null)
            {
                target = (pe.com.grupobbva.harecservice.TipoDocumento)get_store().add_element_user(TIPODOI$2);
            }
            target.set(tipoDOI);
        }
    }
    
    /**
     * Unsets the "tipoDOI" element
     */
    public void unsetTipoDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TIPODOI$2, 0);
        }
    }
    
    /**
     * Gets the "nroDOI" element
     */
    public java.lang.String getNroDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NRODOI$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "nroDOI" element
     */
    public pe.com.grupobbva.harecservice.NumeroDocumento xgetNroDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.NumeroDocumento target = null;
            target = (pe.com.grupobbva.harecservice.NumeroDocumento)get_store().find_element_user(NRODOI$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "nroDOI" element
     */
    public boolean isSetNroDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(NRODOI$4) != 0;
        }
    }
    
    /**
     * Sets the "nroDOI" element
     */
    public void setNroDOI(java.lang.String nroDOI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NRODOI$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NRODOI$4);
            }
            target.setStringValue(nroDOI);
        }
    }
    
    /**
     * Sets (as xml) the "nroDOI" element
     */
    public void xsetNroDOI(pe.com.grupobbva.harecservice.NumeroDocumento nroDOI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.NumeroDocumento target = null;
            target = (pe.com.grupobbva.harecservice.NumeroDocumento)get_store().find_element_user(NRODOI$4, 0);
            if (target == null)
            {
                target = (pe.com.grupobbva.harecservice.NumeroDocumento)get_store().add_element_user(NRODOI$4);
            }
            target.set(nroDOI);
        }
    }
    
    /**
     * Unsets the "nroDOI" element
     */
    public void unsetNroDOI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(NRODOI$4, 0);
        }
    }
    
    /**
     * Gets the "estado" element
     */
    public java.lang.String getEstado()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ESTADO$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "estado" element
     */
    public org.apache.xmlbeans.XmlString xgetEstado()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ESTADO$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "estado" element
     */
    public boolean isSetEstado()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ESTADO$6) != 0;
        }
    }
    
    /**
     * Sets the "estado" element
     */
    public void setEstado(java.lang.String estado)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ESTADO$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ESTADO$6);
            }
            target.setStringValue(estado);
        }
    }
    
    /**
     * Sets (as xml) the "estado" element
     */
    public void xsetEstado(org.apache.xmlbeans.XmlString estado)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ESTADO$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ESTADO$6);
            }
            target.set(estado);
        }
    }
    
    /**
     * Unsets the "estado" element
     */
    public void unsetEstado()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ESTADO$6, 0);
        }
    }
}
